﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ListEmployee.aspx.cs" Inherits="ProjectSem3.Admin.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
 <ul>
                      <li><a href="ListEmployee.aspx" class="current"><span>Employees</span></a></li>
                      <li><a href="ListCustomer.aspx"><span>Customers</span></a></li>
                <li><a href="RegistrationEmployee.aspx"><span>New user</span></a></li>
           </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
<div class="grid_9">
        <h1 class="dashboard">
           List Employees
        </h1>
    </div>
    <asp:ListView runat="server" ID="listView1" 
        onpagepropertieschanged="listView1_PagePropertiesChanged" 
        onpagepropertieschanging="listView1_PagePropertiesChanging" 
        onselectedindexchanged="listView1_SelectedIndexChanged" 
        onselectedindexchanging="listView1_SelectedIndexChanging">
        <LayoutTemplate>
            <div class="portlet">
                <div class="portlet-content nopadding">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                            <tr>
                                <th>
                                    Username
                                </th>
                                <th>
                                    Fullname
                                </th>
                                <th>
                                    Birthday
                                </th>
                                <th>
                                    Email
                                </th>
                                <th>
                                    Address
                                </th>
                                        <th>
                                    Phone
                                </th>
                                <th>
                                    Status
                                </th>
                                 <th>
                                    Option
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                        </tbody>
                    </table>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%# Eval("Username") %>
                    <asp:HiddenField ID="HiddenField1" runat="server"  Value='<%# Eval("EmployeeID") %>' />
                </td>
                <td>
                    <%# Eval("Fullname")%>
                </td>
                <td>
                    <%# Eval("Birthday")%>
                </td>
                <td>
                    <%# Eval("Email")%>
                </td>
                <td>
                    <%# Eval("Address")%>
                </td>
                         <td>
                    <%# Eval("Phone")%>
                </td>
                <td>
                   <asp:CheckBox ID="CheckBox1" Checked='<%# Eval("Status")%>' runat="server" Enabled="false"/>
                </td>
                  <td>
                      <asp:LinkButton ID="LinkEdit" runat="server" CommandName="select">Edit</asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
     <asp:DataPager ID="DataPager1" runat="server" PageSize="8" PagedControlID="ListView1">
        <Fields>
            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true"
                ButtonType="Link" ShowNextPageButton="false" ShowLastPageButton="false" />
            <asp:NumericPagerField ButtonType="Link" />
            <asp:NextPreviousPagerField ShowFirstPageButton="false" ButtonType="Link" ShowPreviousPageButton="false"
                ShowNextPageButton="true" ShowLastPageButton="true" />
        </Fields>
    </asp:DataPager>
</asp:Content>

